package me.fanchaoo.web.util.wx;

/**
 * @description 微信接口调用地址
 * @author zxj
 * @date
 */
public class WXContants {

    /**微信开放平台调用的基础地址*/
    private static final String  WX_OPEN_BASE_URL = "https://open.weixin.qq.com";
    /**微信API调用的基础地址*/
    private static final String  WX_API_BASE_URL = "https://api.weixin.qq.com";

    /**获取微信认证地址*/
    public static final String WX_AUTHORIZE_URL = WX_OPEN_BASE_URL + "/connect/oauth2/authorize";
    /**获取微信token地址*/
    public static final String WX_TOKEN_URL = WX_API_BASE_URL + "/sns/oauth2/access_token";
    /**获取微信用户地址*/
    public static final String WX_USERINFO_URL = WX_API_BASE_URL + "/sns/userinfo";
    /**获取JSSDK认证token*/
    public static final String JSSDK_ACCESSTOKEN = WX_API_BASE_URL + "/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    /**获取JSSDK认证TICKET*/
    public static final String JSSDK_TICKET = WX_API_BASE_URL + "/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

    /**替换字段微信appId*/
    public static final String REPLACE_FEILD_APPID = "APPID";
    /**替换字段微信appsecret*/
    public static final String REPLACE_FEILD_APPSECRET = "APPSECRET";
    /**替换字段认证token*/
    public static final String REPLACE_FEILD_ACCESS_TOKEN = "ACCESS_TOKEN";
}
